﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ingebet.Model.Domain;
using Ingebet.Repository;
using Ingebet.Repository.Contract;

namespace Ingebet.Model
{
    public class CompetitionModel : BaseModel<Competition, ICompetitionRepository, int>
    {
        public CompetitionModel()
            : base(new CompetitionRepository())
        {
        }

        public Competition GetByName(string compet)
        {
            return this._repository.GetByName(compet);
        }
    }
}